ifneq ($(KERNELRELEASE),)
	obj-m		:= ws2811_drv.o
	#EXTRA_CFLAGS += -DDEBUG

else
	PWD := $(shell pwd)
	KVER := $(shell uname -r)
	KDIR := /lib/modules/$(KVER)/build

all:
	$(MAKE) ARCH=arm CROSS_COMPILE=arm-gcc7.3-linux-musleabi- -C $(KDIR) M=$(PWD) modules

clean:
	rm -rf *.o *.mod.c *.mod.o *.ko *.symvers *.order *.a

endif
